import request from '@/utils/request'

// 查询题解列表
export function listSubjectproblems(query) {
  return request({
    url: '/subjectproblems/subjectproblems/list',
    method: 'get',
    params: query
  })
}

// 查询题解详细
export function getSubjectproblems(id) {
  return request({
    url: '/subjectproblems/subjectproblems/' + id,
    method: 'get'
  })
}

// 新增题解
export function addSubjectproblems(data) {
  return request({
    url: '/subjectproblems/subjectproblems',
    method: 'post',
    data: data
  })
}

// 修改题解
export function updateSubjectproblems(data) {
  return request({
    url: '/subjectproblems/subjectproblems',
    method: 'put',
    data: data
  })
}

// 删除题解
export function delSubjectproblems(id) {
  return request({
    url: '/subjectproblems/subjectproblems/' + id,
    method: 'delete'
  })
}
